<?php
namespace App\Module\User\Controller;

use App\Common\Controller\AbstractController;
use App\Module\User\Service\RollService;
use Hyperf\Di\Annotation\Inject;

class RollController extends AbstractController{

    /**
     * @Inject()
     * @var RollService $rollService
     */
    private $rollService;

    public function search(){
        $pagesize = $this->request->input("pagesize");

        return $this->response->json($this->rollService->search($pagesize));
    }
}